<template>
	<!-- title部分 -->
	<view class="title">
		<view class="title_leftbox" @click="goToWode">
			<image class="title_leftbox_image_fanhui" src="../../static/返回.png"></image>
		</view>
		<view class="title_middlebox">
			<view class="title_middlebox_text">我的资料</view>
		</view>
		<view class="title_rightbox">
			<view class="title_rightbox_text"></view>
		</view>
	</view>

	<!-- wode部分 -->
	<view class="wodebox">
		<view class="wodebox_textimgbox">
			<view class="wodebox_textimgbox_text1">头像</view>
			<image class="wodebox_textimgbox_img" src="../../static/lanseqiu.png"></image>
			<image class="wodebox_textimgbox_img1" src="../../static/xiangyoujiantou.png"></image>
		</view>
		<view class="wodebox_textimgbox">
			<view class="wodebox_textimgbox_text1">昵称</view>
			<view class="wodebox_textimgbox_text2">未设置</view>
			<image class="wodebox_textimgbox_img1" src="../../static/xiangyoujiantou.png"></image>
		</view>
		<view class="wodebox_textimgbox" @click="goToDenglumima">
			<view class="wodebox_textimgbox_text1">登录密码</view>
			<image class="wodebox_textimgbox_img1" src="../../static/xiangyoujiantou.png"></image>
		</view>
		<view class="wodebox_textimgbox" @click="goToZhifumima">
			<view class="wodebox_textimgbox_text1">支付密码</view>
			<image class="wodebox_textimgbox_img1" src="../../static/xiangyoujiantou.png"></image>
		</view>
	</view>
	<!-- 姓名部分 -->
	<view class="xingmingbox">
		<view class="wodebox_textimgbox">
			<view class="wodebox_textimgbox_text1">真实姓名</view>
			<view class="wodebox_textimgbox_text2">董**</view>
		</view>
		<view class="wodebox_textimgbox">
			<view class="wodebox_textimgbox_text1">身份证号码</view>
			<view class="wodebox_textimgbox_text2">330***************</view>
		</view>
		<view class="wodebox_textimgbox">
			<view class="wodebox_textimgbox_text1">手机号码</view>
			<view class="wodebox_textimgbox_text2">1308393****</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goToWode() {
				// 在tabbar中使用uniapp的switchTab方法跳转
				uni.switchTab({
					url: '/pages/wode/wode', // 我的路径
				});
			},
			goToDenglumima() {
				// 在tabbar中使用uniapp的navigateTo方法跳转
				uni.navigateTo({
					url: '/pages/shezhimima/shezhimima', // 跳转到设置登录密码页面
				});
			},
			goToZhifumima() {
				// 在tabbar中使用uniapp的navigateTo方法跳转
				uni.navigateTo({
					url: '/pages/shezhizhifumima/shezhizhifumima', // 跳转到设置登录密码页面
				});
			},
		}
	}
</script>

<style>
	page {
		background: #eeeeee;
	}

	/* 以下是title部分样式 */
	.title {
		background-color: rgb(226, 50, 52);
		display: flex;
		align-items: center;
		justify-content: space-between;
		/* 使左右盒子分别位于两侧 */
		padding: 2%;
	}

	.title_leftbox {
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使图标居中 */
	}

	.title_leftbox_image_fanhui {
		width: 17px;
		height: 17px;
	}

	.title_middlebox {
		flex-grow: 1;
		/* 使中间盒子占据剩余空间 */
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使文本居中 */
	}

	.title_middlebox_text {
		font-size: 15px;
		color: white;
		font-weight: 700;
	}

	.title_rightbox {
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使文本居中 */
	}

	.title_rightbox_text {
		color: white;
	}



	/*wode部分*/
	.wodebox {
		padding: 2%;
		margin-bottom: 10px;
		background-color: white;
	}

	.wodebox_textimgbox {
		display: flex;
		align-items: center;
	}

	.wodebox_textimgbox_text1 {
		font-size: 15px;
		color: #606266;
		flex: 1;
		padding: 4% 0;
	}

	.wodebox_textimgbox_text2 {
		font-size: 15px;
		color: #909399;
	}

	.wodebox_textimgbox_img {
		width: 30px;
		height: 30px;
		display: block;
	}

	.wodebox_textimgbox_img1 {
		width: 15px;
		height: 15px;
		display: block;
	}

	/* 姓名部分 */
	.xingmingbox {
		padding: 2%;
		background-color: white;
	}
</style>
